<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var a = prompt("请输入第一个数")
      var b = prompt("请输入第二个数")
      if (a > b) {
        alert(`是${a}比较大`)
      } else if (a == b) {
        alert(`两个数一样大`)
      } else {
        alert(`是${b}比较大`)
      }
    </script>
  </body>
</html>
